<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<title><?php echo ($name); ?> <?php echo ($site_name); ?> <?php echo ($site_seo_title); ?></title>
<meta name="keywords" content="<?php echo ($site_seo_keywords); ?>" />
<meta name="description" content="<?php echo ($site_seo_description); ?>" />
<link rel="icon" href="/yxtcmf/public/simplebootx/public/images/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="/yxtcmf/public/simplebootx/public/images/favicon.ico" type="image/x-icon" media="screen" />
<link href="/yxtcmf/public/simplebootx/public/css/bootstrap.css" rel="stylesheet" />
<link rel="stylesheet" media="screen" href="/yxtcmf/public/simplebootx/public/css/common.css" />
<link rel="stylesheet" media="screen" href="/yxtcmf/public/simplebootx/public/css/main.css" />
<link rel="stylesheet" media="screen" href="/yxtcmf/public/simplebootx/public/css/es-icon.css" />
<link rel="stylesheet" media="screen" href="/yxtcmf/public/simplebootx/public/css/iconfont.css" />
<link href="/yxtcmf/public/simpleboot/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" media="screen" href="/yxtcmf/public/simplebootx/public/css/theme.css" />
<link rel="stylesheet" media="screen" href="/yxtcmf/public/pintuer/pintuer.css" />
<link href="/yxtcmf/public/js/artDialog/skins/default.css" rel="stylesheet" />
<!--[if lt IE 9]>    
	<script src="/yxtcmf/public/simplebootx/public/js/html5shiv.js"></script>   
	<script src="/yxtcmf/public/simplebootx/public/js/respond.min.js"></script>  
<![endif]-->
</head>
<body>	
	<header class="navbar">		
		<div class="container">			
			<div class="clearfix navbar-top">				
				<a href="/yxtcmf/"><img src="/yxtcmf/public/simplebootx/public/images/logo.png" class="pull-left logo-left"></a>				
				<button class="navbar-toggle pull-left" type="button" data-toggle="collapse" data-target=".navbar-collapse">		
					<span class="sr-only">Toggle navigation</span>			
					<span class="icon-bar"><i class="iconfont icon-gengduo"></i></span>		
					<span class="icon-bar"></span>				
					<span class="icon-bar"></span>				
				</button>				
				<form class="navbar-form hidden-xs" role="search" action="<?php echo u('Course/Course/search');?>" method="post">					
					<div class="form-group">					
						<input type="search" placeholder="搜索课程" class="form-control js-search" name="keywords">				
					</div>					
					<button type="submit" class="button iconfont icon-search"></button>				
				</form>				
				<!--<a class="pull-right hidden-xs">					
					<i class="iconfont icon-mianfeidianhua icon"></i>				
					<span class="telephone">全国服务热线：<?php echo ($kefu_tel); ?></span>			
				</a>-->			
				<!--<div class="navbar-user pull-right visible-xs"  style="top:16px;" >					
				<?php if(session('?user')): ?><ul class="nav navbar-nav navbar-right">														
						<li class="info-img">
							<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"> 		
								<span><?php echo ($user_nicename); ?></span> <i class="iconfont icon-xia"></i> 
							</a>								
									<ul class="dropdown-menu menu-ul" role="menu">									
										<li><a href="<?php echo U('User/Center/setting');?>">
											<i class="iconfont icon-shezhi"></i>个人设置</a></li>										
										<li><a href="<?php echo u('user/center/count');?>"><i class="iconfont icon-001"></i> 账户中心</a></li>										
											<li><a href="<?php echo u('user/center/application');?>"><i class="iconfont icon-001"></i> 成为教师</a></li>								
										<li><a href="<?php echo U('user/index/logout');?>"><i class="iconfont icon-tuichu"></i>退出登录</a></li>									
									</ul>								
						</li>					
					</ul>					
				<?php else: ?>						
					<ul class="nav navbar-nav navbar-right">							
						<li><a href="<?php echo leuu('User/Login/index');?>"> 登录</a></li>							
						<!--<li>｜</li>							
						<li><a href="<?php echo leuu('User/Register/index');?>">注册</a></li>			
					</ul><?php endif; ?>-->				
				</div>			
			</div>		
		</div>		
		<nav class="nav-collapse">			
			<div class="container">				
				<div class="navbar-header">					
					<ul class="nav navbar-left navbar-collapse collapse">						
						<li class=""><a href="/yxtcmf/" class="">首页 </a></li>						
						<li class=""><a href="<?php echo leuu('Course/Course/coursecenter');?>" class="">精品课程</a></li>						
						<!--<li class=""><a href="<?php echo leuu('Teacher/Teacher/index');?>" class="">金牌讲师</a></li>						
						<li class=""><a href="<?php echo leuu('Exam/Shiti/index');?>" class="">在线题库</a></li>-->						
						<li class=""><a href="<?php echo leuu('Portal/Index/article');?>" class="">党建新闻</a></li>						
						<!--<li class=""><a href="<?php echo leuu('Forum/Plate/index');?>" class="">交流论坛</a></li>-->						
						<?php if(is_array($nav)): $i = 0; $__LIST__ = $nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li class=""><a href="<?php echo (sp_get_href($vo['href'])); ?>" class=""><?php echo ($vo['label']); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>					
					</ul>				
				</div>				
				<div class="navbar-user hidden-xs">				
					<ul class="nav navbar-nav navbar-right">						
					<?php if(session('?user')): ?><ul class="nav navbar-nav navbar-right">							
							<?php if($user_type == 3): ?><li><a href="<?php echo u('Teacher/Center/index');?>" class="nav-study">我的教室</a></li>							
							<?php else: ?>								
								<li><a href="<?php echo u('User/Center/index');?>" class="nav-study">我的教室</a></li><?php endif; ?>								
								<li class="info-img">
									<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"> 				
										<?php if(empty($avatar)): ?><img src="/yxtcmf/public/simplebootx/public/images/093958e59110293063.jpg" class="img-circle" />		
										<?php else: ?> 										
											<img src="<?php echo sp_get_user_avatar_url($avatar);?>?t=<?php echo time();?>" class="img-circle" /><?php endif; ?> 									
										<span><?php echo ($user_nicename); ?></span> <i class="icon-caret-down"></i> 
									</a>									
									<ul class="dropdown-menu menu-ul" role="menu">								
										<li><a href="<?php echo u('User/Center/setting');?>"><i class="icon-cogs"></i>个人设置</a></li>		
										<li><a href="<?php echo u('user/center/count');?>"><i class="icon-desktop"></i> 账户中心</a></li>	
										<li><a href="<?php echo u('user/center/application');?>"><i class="icon-graduation-cap"></i> 成为教师</a></li>	
										<li><a href="<?php echo U('user/index/logout');?>"><i class="icon-power-off"></i>退出登录</a></li>	
									</ul>								
								</li>						
						</ul>					
					<?php else: ?>				
						<ul class="nav navbar-nav navbar-right">							
							<li><a href="<?php echo leuu('User/Login/index');?>"> <span class="glyphicon glyphicon-log-in"></span>&nbsp&nbsp登录</a></li>	
							<!--<li><a href="<?php echo leuu('User/Register/index');?>"><span class="glyphicon glyphicon-user"></span>&nbsp&nbsp注册</a></li>-->	
						</ul><?php endif; ?>					
					</ul>				
				</div>			
			</div>		
		</nav>    
	</header>    
<link href="/yxtcmf/public/js/artDialog_v6/ui_dialog.css" rel="stylesheet" />
 <div id="content-container" class="container">
  <div class="article-detail row" id="detail-content">
    <div class="col-md-12 article-detail-main">
      <section class="es-section article-content">
        <ol class="breadcrumb">
          <a  class="btn btn-default" href="<?php echo u('course/Course/courseinfo',array('id'=>$lession['cs_id']));?>" id="returncourse" style="color:#82d867;">返回课程</a>
        </ol>       
        <div class="article-metas">
            <input type="hidden" id="cs_id" value="<?php echo ($lession['cs_id']); ?>"></input>
			<input type="hidden" id="sc_id" value="<?php echo ($lession['id']); ?>"></input>
          <div class="text-center">
             <h2 class="title"><?php echo ($lession['sc_name']); ?></h2>
          </div>          
        </div>        
        <div class="article-text">
          <?php echo ($lession['doccontent']); ?>
        </div>
      </section>
    </div>
    <div class="col-md-7 col-md-offset-10">
		<button id="isover" class="btn btn-primary js-ajax-submit">我已经学完了</button>
	</div>
    </div>
  </div>
<script type="text/javascript">
var GV = {
    DIMAUB: "/yxtcmf/",
    JS_ROOT: "public/js/",
    TOKEN: ""
};
</script>
<script>
	  
</script>
<script src="/yxtcmf/public/js/jquery.js"></script>
<script src="/yxtcmf/public/js/wind.js"></script>
<script src="/yxtcmf/public/js/bootstrap.min.js"></script>
<script src="/yxtcmf/public/js/frontend.js"></script>
<script src="/yxtcmf/public/js/artDialog/artDialog.js"></script>
<script src="/yxtcmf/public/js/artDialog_v6/dialogmin.js"></script>
<script type="text/javascript"> 
$("#isover").click(function(){
	var sid=document.getElementById("sc_id").value;
	var cid=document.getElementById("cs_id").value;
	$.ajax({ url:'<?php echo u('Course/Course/studied');?>', 
		 type:"post", data:{'sc_id':sid,'cs_id':cid}, 
		 dataType:'json', 
		 success:function(data){
		     var d = dialog({
				title: '正在提交..',
				content: '我已经学完了本课程！已挣得10积分！',
				
			});
			setTimeout(function () {
				document.getElementById("returncourse").click();
			}, 2000);
			d.width(300)
			d.showModal();
			
		   }
		}
	  );
	})
</script> 
  <!--<div class="es-footer-link">
   <div class="container">
     <div class="row">
       <div class="col-md-12 footer-main clearfix">
       <?php if(is_array($dnav)): $i = 0; $__LIST__ = $dnav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="link-item ">
           <h3><?php echo ($vo['label']); ?></h3>
           <ul>
            <?php if(is_array($vo['voo'])): $i = 0; $__LIST__ = $vo['voo'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$sub): $mod = ($i % 2 );++$i;?><li><a href="<?php echo (sp_get_href($sub['href'])); ?>" target="_blank"><?php echo ($sub['label']); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
           </ul>
         </div><?php endforeach; endif; else: echo "" ;endif; ?>  
     </div>
    </div>
	<div class="fr_link">
	  <div class="yq_lk">
	     <h3>友情链接</h3>
		 <?php if(is_array($links)): $i = 0; $__LIST__ = $links;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><a href="<?php echo ($vo['link_url']); ?>"  target="<?php echo ($vo['link_target']); ?>" title="<?php echo ($vo['link_name']); ?>"><?php echo ($vo['link_name']); ?></a><?php endforeach; endif; else: echo "" ;endif; ?> 
	  </div>
	</div>       
  </div>
 </div>-->
<div class="layout fixed-bottom bg-main bg-inverse hidden-s  hidden-m hidden-b">
	<div class="container text-center padding-top padding-bottom">
        <div class="x3"><a class="icon-home" href="/yxtcmf/"> 首页</a></div>
        <div class="x3"><a class="icon-book" href="<?php echo U('Course/course/coursecenter');?>"> 课程</a></div>
        <div class="x3"><a class="icon-comments" href="<?php echo U('portal/index/article');?>"> 新闻</a></div>
        <div class="x3">
			<?php if(session('?user')): ?><a class="icon-user" href="<?php echo U('User/center/index');?>"> 我的</a>
			<?php else: ?>
			<a class="icon-user" href="<?php echo U('User/login/index');?>"> 我的</a><?php endif; ?>
		</div>
    </div>
</div>

<div class="container-layout">
    <div class="border-top padding-top">        
        <div class="text-center height-big margin">
           考试系统后端 @ 版权所有【2017-2020】
		</div>
    </div>
</div>
<!--<footer class="es-footer">
  <div class="copyright">
    <div class="container">设计开发： 
		<a href="/yxtcmf/" target="_blank"><?php echo ($site_name); ?></a>©2017-2020 <a class="mlm" href="/yxtcmf/" target="_blank"></a>      
    </div>
  </div>
</footer>-->    
</body>
</html>